//
//  TagView.h
//  XPhoto
//
//  Created by sentinel on 2020/4/20.
//  Copyright © 2020 baboy. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, TagButtonType) {
    TagButtonTypeText               = 0,//纯文本
    TagButtonTypeSerial,//系列
    TagButtonTypeLocation,//地点
    TagButtonTypeLabel//标签
};

NS_ASSUME_NONNULL_BEGIN
@protocol TagView;;
@interface TagView : UIView
@property(nonatomic, assign)UIEdgeInsets contentInsets;
@property(nonatomic, assign) IBOutlet id delegate;
- (UIButton *)addTag:(NSString*)tag type:(TagButtonType)type userInfo:(id)userInfo;
- (void)clear;
@end
@protocol TagViewDelegate <NSObject>
@optional
- (void)tagView:(TagView*)tagView didSelectButton:(UIButton *)button userInfo:(id)userInfo;
@end
NS_ASSUME_NONNULL_END
